<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html ng-app="treeGridTest">

<head>

<title>菜单管理</title>

<link
	href="${pageContext.request.contextPath }/css/bootstrap.min.css?v=3.3.6"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/font-awesome.css?v=4.4.0"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/plugins/iCheck/custom.css"
	rel="stylesheet">

<!-- treegrid -->
<link
	href="${pageContext.request.contextPath }/css/plugins/treegrid/treegrid.css"
	rel="stylesheet">

<!-- Sweet Alert -->
<link
	href="${pageContext.request.contextPath }/css/plugins/sweetalert/sweetalert.css"
	rel="stylesheet">

<!-- chosen -->
<link
	href="${pageContext.request.contextPath }/css/plugins/chosen/bootstrap-chosen.css"
	rel="stylesheet">

<link href="${pageContext.request.contextPath }/css/animate.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath }/css/style.css?v=4.1.0"
	rel="stylesheet">


<link
	href="${pageContext.request.contextPath }/css/plugins/bootstrap-table/bootstrap-table.min.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/plugins/toastr/toastr.min.css"
	rel="stylesheet">



<link href="${pageContext.request.contextPath }/myCss/common.css"
	rel="stylesheet">
	
</head>

<body ng-controller="treeGridController" class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">

		<div class="row">
			<!-- 菜单管理 -->
			<div class="col-sm-4">
				<div class="ibox">
					<div class="ibox-content">
						<div class="tab-content">
							<h2>父级菜单</h2>
							<div style="height: 20px"></div>
							<button ng-click="my_tree.expand_all()"
								class="btn btn-primary btn-sm">
								<i class="fa fa-plus"></i>展开全部
							</button>
							<button ng-click="my_tree.collapse_all()"
								class="btn btn-primary btn-sm">
								<i class="fa fa-remove"></i>关闭全部
							</button>
							<button class="btn btn-primary btn-sm" onclick="returnHome()">
								<i class="fa fa-reply"></i>返回
							</button>

							<tree-grid tree-data="tree_data" tree-control="my_tree"
								col-defs="col_defs" expand-on="expanding_property"
								on-select="my_tree_handler(branch)" expand-level="1"
								icon-leaf="glyphicon glyphicon-globe"> </tree-grid>

						</div>
					</div>
				</div>
			</div>

			<div class="col-sm-8">
				<div class="ibox">
					<div class="ibox-content">
						<div class="tab-content">

							<h2>子菜单顺序管理</h2>
							<div class="alert alert-info alert-dismissable">
								<button aria-hidden="true" data-dismiss="alert" class="close"
									type="button">×</button>
								单击左边父级菜单table行可以显示所对应子类的排序，下面子类table行可以直接拖动排序！
								<input id="parentMenuIdHidden" type="hidden" value="-1"/>
								<input id="parentMenuLevelHidden" type="hidden" value="0"/>
								<input id="parentMenuName" type="hidden" value="根菜单"/>
							</div>
							<div class="">
								<div class="tab-pane active">
									<div class="table-responsive"></div>
									<!-- 动态生成表格 -->
									<div class="bootstrap-table">
										 
										<div class="fixed-table-container"
											style="padding-bottom: 0px;">
											<div class="fixed-table-header" style="display: none;">
												<table></table>
											</div>
											<div class="fixed-table-body">
												<div class="fixed-table-loading" style="top: 37px;">正在努力地加载数据中，请稍候……</div>
												<input type="hidden" id="parent" value="部门类型">
												<table id="basedataLevel2Table" class="table table-hover table-striped">
													<thead>
														<tr>
															<th style="" data-field="level1Name" tabindex="0"><div
																	class="th-inner ">父菜单</div>
																<div class="fht-cell"></div></th>
															<th style="" data-field="level2Name" tabindex="0"><div
																	class="th-inner ">子菜单</div>
																<div class="fht-cell"></div></th>
															<th style="" data-field="menuOrder" tabindex="0"><div
																	class="th-inner ">排序值</div>
																<div class="fht-cell"></div></th>
														</tr>
													</thead>
													<tbody id="sortable">
													<!-- 
															<tr class="no-records-found">
																<td colspan="3">没有找到匹配的记录</td>
															</tr>
													 -->
													 <!-- 
															<tr style="cursor:move" data-index="0" data-uniqueid="20170316000060">
																 
																<td style="">根目录</td>
																<td style="">管理员管理</td>
																<td style="">1</td>
															</tr>
															<tr style="cursor:move" data-index="1" data-uniqueid="20170316000061">
																 
																<td style="">根目录</td>
																<td style="">信息管理</td>
																<td style="">2</td>
															</tr>
													 -->
													 </tbody>
												</table>
											</div>
											 
											<div class="fixed-table-pagination">
												<div class="pull-right pagination-detail">
													<button class="btn btn-primary" onclick="updateMenuSortSave()">保存</button>
												</div>
											</div>
										</div>
									</div>
									<div class="clearfix"></div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>


	<!-- 全局js -->
	<script
		src="${pageContext.request.contextPath }/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="${pageContext.request.contextPath }/js/bootstrap.min.js?v=3.3.6"></script>


	<!-- iCheck -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/iCheck/icheck.min.js"></script>
	<script>
		$(document).ready(function() {
			$('.i-checks').iCheck({
				checkboxClass : 'icheckbox_square-green',
				radioClass : 'iradio_square-green',
			});
		});
	</script>

	<!-- bootstr表格插件 -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/bootstrap-table/bootstrap-table-mobile.min.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>

	<!-- 表单验证插件   -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/validate/jquery.validate.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/validate/messages_zh.min.js"></script>


	<!-- 通知插件 -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/sweetalert/sweetalert.min.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/toastr/toastr.min.js"></script>

	<!-- 格式化时间 -->
	<script src="${pageContext.request.contextPath }/js/plugins/moment.js"></script>

	<!-- Chosen多选插件 -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/chosen/chosen.jquery.js"></script>

	<!-- angular插件 -->
	<script src="${pageContext.request.contextPath }/js/angular.js"></script>

	<!-- treegrid插件 -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/treegrid/tree-grid-directive2.js"></script>
	<!-- jquery-ui插件 -->
	<script src="${pageContext.request.contextPath }/js/plugins/jquery-ui/jquery-ui.min.js"></script>

	<!-- 自己的 -->
	<script src="${pageContext.request.contextPath }/myJs/common.js"></script>
	<script
		src="${pageContext.request.contextPath }/myJs/admin/menu/update-sort.js"></script>
</body>

</html>
